package nl.virtualbookshelf.domain

import java.util.Date
import reflect.BeanProperty

class Book(@BeanProperty var titles: Array[String],
           @BeanProperty var authors: Array[Author],
           @BeanProperty var genre: String,
           @BeanProperty var isbn: String,
           @BeanProperty var purchaseDate: Date,
           @BeanProperty var comments: Array[String]) {
  override def toString: String = "Book titles=[" + titles + "], isbn=[" + isbn + "], author=[" + authors + "], genre=["+genre+"], purchaseDate=[" + purchaseDate + "], comment=[" + comments + "]"
}